package com.xxzuibang.day4;

import java.util.Scanner;

public class Test3 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入1-10分之间成绩：");
        double score = sc.nextDouble();

        if (score >= 0 && score <= 10.0) {
            if (score > 8.0) {
                System.out.println("请输入性别：");
                char sex = sc.next().charAt(0);
                if (sex == '男') {
                    System.out.println("进入男子组");
                } else if(sex=='女') {
                    System.out.println("进入女子组");
                }else{
                    System.out.println("好好写！！！");
                }
            } else {
                System.out.println("很遗憾您被淘汰了");
            }
        } else {
            System.out.println("请输入1-10分之间合规的成绩");
        }
    }
}
